package com.huanying.framework.building;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.hibernate.annotations.GenericGenerator;

@Entity
public class Sale implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4490531555357814535L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)  
	private long id;
	private String code;			//系统编号
	private String building_name;			//房屋名称
	private long district_id;		//区域表外键
	private long business_area_id;	//商圈表外键
	private long community_id;		//小区表外键
	private int home_type;			//用途（参数表）	住宅、别墅、商铺、写字楼、厂房、仓库、车库
	private int build_type;			//建筑类型（参数表）	住宅（电梯、多层、平房、独院、商住两用、写住两用、其他）
									//					别墅（联体别墅、叠拼别墅、双拼别墅、独栋别墅、其他）
									//					商铺（住宅底商、商业街商铺、酒店商铺、社区商铺、旅游商铺、沿街门脸、写字底商、购物中心、卖场、商住两用、其他）
									//					写字楼（纯写字楼、写住两用、其他）
									//					厂房、仓库、车库不使用此字段
	private int fitment_type;		//装修状况（参数表）	毛坯、普通、中档、高档、精装、豪装
	private String build_year;		//建筑年代
	private int toward;				//朝向 （参数表） 东、南、西、北、南北、东西、东南、西南、东北、西北
	private String check_num;		//(房管局)核验编号
	private BigDecimal total_price;	//总价
	private BigDecimal unit_price;	//单价
	private BigDecimal floor_price;	//底价
	private String build_space;		//建筑面积
	private String inside_space;	//套内面积
	private int bedroom_num;		//卧室数
	private int livingroom_num;		//厅数
	private int toilet_num;			//卫生间数
	private String floor_num;		//楼层
	private int totle_floor;		//总层数
	private String building_num;	//栋、座
	private String unit_num;		//单元号
	private String apartment_num;	//房号
	private String address;			//地址
	private String number_position;	//号位
	
	private Timestamp creat_time;	//发布时间
	private Timestamp refresh_time;	//刷新时间
	
	@Column(name="status",nullable=false,columnDefinition="INT default 1")
	private int status;
	
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	
	public String getBuilding_name() {
		return building_name;
	}
	public void setBuilding_name(String building_name) {
		this.building_name = building_name;
	}
	public long getDistrict_id() {
		return district_id;
	}
	public void setDistrict_id(long district_id) {
		this.district_id = district_id;
	}
	public long getBusiness_area_id() {
		return business_area_id;
	}
	public void setBusiness_area_id(long business_area_id) {
		this.business_area_id = business_area_id;
	}
	public long getCommunity_id() {
		return community_id;
	}
	public void setCommunity_id(long community_id) {
		this.community_id = community_id;
	}
	public int getHome_type() {
		return home_type;
	}
	public void setHome_type(int home_type) {
		this.home_type = home_type;
	}
	public int getBuild_type() {
		return build_type;
	}
	public void setBuild_type(int build_type) {
		this.build_type = build_type;
	}
	public int getFitment_type() {
		return fitment_type;
	}
	public void setFitment_type(int fitment_type) {
		this.fitment_type = fitment_type;
	}
	public String getBuild_year() {
		return build_year;
	}
	public void setBuild_year(String build_year) {
		this.build_year = build_year;
	}
	
	public int getToward() {
		return toward;
	}
	public void setToward(int toward) {
		this.toward = toward;
	}
	public String getCheck_num() {
		return check_num;
	}
	public void setCheck_num(String check_num) {
		this.check_num = check_num;
	}
	public BigDecimal getTotal_price() {
		return total_price;
	}
	public void setTotal_price(BigDecimal total_price) {
		this.total_price = total_price;
	}
	public BigDecimal getUnit_price() {
		return unit_price;
	}
	public void setUnit_price(BigDecimal unit_price) {
		this.unit_price = unit_price;
	}
	public BigDecimal getFloor_price() {
		return floor_price;
	}
	public void setFloor_price(BigDecimal floor_price) {
		this.floor_price = floor_price;
	}
	public String getBuild_space() {
		return build_space;
	}
	public void setBuild_space(String build_space) {
		this.build_space = build_space;
	}
	public String getInside_space() {
		return inside_space;
	}
	public void setInside_space(String inside_space) {
		this.inside_space = inside_space;
	}
	public int getBedroom_num() {
		return bedroom_num;
	}
	public void setBedroom_num(int bedroom_num) {
		this.bedroom_num = bedroom_num;
	}
	public int getLivingroom_num() {
		return livingroom_num;
	}
	public void setLivingroom_num(int livingroom_num) {
		this.livingroom_num = livingroom_num;
	}
	public int getToilet_num() {
		return toilet_num;
	}
	public void setToilet_num(int toilet_num) {
		this.toilet_num = toilet_num;
	}
	public String getFloor_num() {
		return floor_num;
	}
	public void setFloor_num(String floor_num) {
		this.floor_num = floor_num;
	}
	public int getTotle_floor() {
		return totle_floor;
	}
	public void setTotle_floor(int totle_floor) {
		this.totle_floor = totle_floor;
	}
	public String getBuilding_num() {
		return building_num;
	}
	public void setBuilding_num(String building_num) {
		this.building_num = building_num;
	}
	public String getUnit_num() {
		return unit_num;
	}
	public void setUnit_num(String unit_num) {
		this.unit_num = unit_num;
	}
	public String getApartment_num() {
		return apartment_num;
	}
	public void setApartment_num(String apartment_num) {
		this.apartment_num = apartment_num;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getNumber_position() {
		return number_position;
	}
	public void setNumber_position(String number_position) {
		this.number_position = number_position;
	}
	public Timestamp getCreat_time() {
		return creat_time;
	}
	public void setCreat_time(Timestamp creat_time) {
		this.creat_time = creat_time;
	}
	public Timestamp getRefresh_time() {
		return refresh_time;
	}
	public void setRefresh_time(Timestamp refresh_time) {
		this.refresh_time = refresh_time;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	
}
